/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpb.projetoesa.dados;

import br.ufpb.projetoesa.negocio.Professor;
import java.util.List;

/**
 *
 * @author Filipe
 */
public abstract class ProfessorDAOFactory {
    
    public static final int BD = 1;
    public static final int FILE = 2;
    
    
    public abstract ProfessorDAO getProfessorDAO(int tipo);
        
    public static ProfessorDAOFactory getProfessorDAOFactory(int tipoPersistencia) {
        
        switch (tipoPersistencia){
            case BD:
                return ProfessorDAOBDFactory.getInstance();
            case FILE:
                return ProfessorDAOArquivoFactory.getInstance();
            default:
                return null;
        }
        
    }
   
    
}
